//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	MetaFormEditableCtrl.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form editable control metadata
	/// </summary>
	public class MetaFormEditableCtrl : MetaFormCtrl
	{
		/// <summary>
		/// Source value
		/// </summary>
		public object OriginalValue { get; set; }

		/// <summary>
		/// Current value
		/// </summary>
		public object Value { get; set; }

		/// <summary>
		/// Flag whether field required
		/// </summary>
		public bool Required { get; set; }

		/// <summary>
		/// Form editable control metadata
		/// </summary>
		public MetaFormEditableCtrl(string title, string name)
			: base(title, name)
		{
		}

#warning Is LoadValueFromControl needed???
		/// <summary>
		/// Load Value from control
		/// </summary>
		public virtual void LoadValueFromControl()
		{
		}

#warning Is SetValueToControl needed???
		/// <summary>
		/// Set Value to control
		/// </summary>
		public virtual void SetValueToControl()
		{
		}
	}
}